#ifndef ROTATINGRAINBOW_H
#define ROTATINGRAINBOW_H

#include "Effects/RGBEffect.h"

class RotatingRainbow : public RGBEffect
{

public:
    RotatingRainbow();
    ~RotatingRainbow();

    //EFFECT_REGISTERER(ClassName(), CAT_RAINBOW, [](){return new RotatingRainbow;});

    static std::string const ClassName() {return "RotatingRainbow";}
    void StepEffect(ControllerZone* const controller_zone) override;

private:

    double time = 1000.0;

    double cos_time;
    double sin_time;

    double cos_reverse_time;
    double sin_reverse_time;

    double color_speed = 1.f;

    RGBColor GetColor(float, float, float, float, bool);
};

#endif // ROTATINGRAINBOW_H
